<?php
	if (!$calldata) exit();
	$xmlp = new simplexml;
	$profile = $xmlp -> xml_load_file("profile/profile.xml");
	
	# NAME
	$name = $profile -> name;
	
	# URL
	$url = $profile -> url;
	@preg_match("/(http:\/\/)?([a-zA-Z0-9.-]*)\/?/", $url, $match);
	$shorturl = $match[2];
	
	# NICKNAME
	$nickname = $profile -> nickname;
	
	# CITY
	$city = $profile -> city;
	
	# COUNTRY
	$country = $profile -> country;
	
	# BIRTHDAY
	$birthdayUnformatted = $profile -> birthday;
	preg_match("/([0-9]{4})-([0-9]{2})-([0-9]{2})/", $birthdayUnformatted, $birthdayArray);
	$yearOfBirth = $birthdayArray[1];
	$monthOfBirth = $birthdayArray[2];
	$dayOfBirth = $birthdayArray[3];
	$birthdayTimestamp = mktime(0, 0, 0, $monthOfBirth, $dayOfBirth, $yearOfBirth);
	$birthday = date($dateFormat, $birthdayTimestamp);
	$ageUnformatted = time() - $birthdayTimestamp;
	$age = floor($ageUnformatted / (60 * 60 * 24 * 365.2425));
?>